Add the secret super sauce so that Mac binaries built on Leopard don't crash on Tiger...
authorrobertl <robertl>
Sun, 17 Feb 2008 23:05:53 +0000 (23:05 +0000)
committerrobertl <robertl>
Sun, 17 Feb 2008 23:05:53 +0000 (23:05 +0000)
tools/mac-config

index 65e53d022a736635e531eeb972eb9102362f7ffb..c986085f1df7b083b2c14cbdaa8825cc81763786 100755 (executable)
@@ -1,6 +1,12 @@
+
+case `uname -r` in
+  9.0) ;; # 10.3/
+  9.1) ;; # 10.4/Tiger
+  *)   XFLAGS="-mmacosx-version-min=10.4" ;; # 10.5/Leopard
+esac 
 SRC=.
-CFLAGS="-O  -arch i386 -arch ppc" \
-  LDFLAGS="-arch i386 -arch ppc"   ${SRC}/configure \
+CFLAGS="$XFLAGS  -O  -arch i386 -arch ppc" \
+  LDFLAGS="$XFLAGS -arch i386 -arch ppc"   ${SRC}/configure \
  --with-libexpat=${SRC}/mac/lib/libexpat.a \
  --with-expathdr=${SRC}/mac/include